import json

import requests
from sqlalchemy import create_engine

from api.dao.admin_dao import AdminDAO

# 数据库配置
# TODO
HOSTNAME = '127.0.0.1'
PORT = '3306'
USERNAME = 'root'
PASSWORD = '***'
DATABASE = 'aigc'
DB_URL = 'mysql+pymysql://{}:{}@{}:{}/{}'.format(USERNAME, PASSWORD, HOSTNAME, PORT, DATABASE)

engine = create_engine(DB_URL)